package collection;

import java.util.ArrayList;
import java.util.Collection;

/**
 *
 */
public class CollectionDemo1 {
    public static void main(String[] args) {
        Collection c=new ArrayList();
        c.add("阿狗");
        c.add("阿猫");
        c.add("小明");
        c.add("夜猫");
        System.out.println(c);
        System.out.println(c.size());
        System.out.println(c.isEmpty());
        c.clear();
        System.out.println("集合已经清空");
        System.out.println(c);
        System.out.println(c.size());
        System.out.println(c.isEmpty());

    }
}
